<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">
<f:view contentType="text/html">
        <h:head>
            <f:facet name="first">
                <meta content='text/html; charset=UTF-8' http-equiv="Content-Type"/>
                <title>Escola</title>
            </f:facet>
        </h:head>

        <h:body>

            <ui:composition template="/paginas/home.xhtml">
<ui:define name="REFERENCIA">
<h:form>
<p:dataTable value="#{MBaula.listar}" var="aula" >

<p:column headerText="CODIGO">
<p:outputLabel value="#{aula.cod}"/>
</p:column>

<p:column headerText="Dia">
<p:outputLabel value="#{aula.dia}"/>
</p:column>

<p:column headerText="Professor">
<p:outputLabel value="#{aula.professor}"/>
</p:column>

<p:column headerText="Turma">
<p:outputLabel value="#{aula.turma}"/>
</p:column>

<p:column headerText="Sala">
<p:outputLabel value="#{aula.sala}"/>
</p:column>

</p:dataTable>
</h:form>

</ui:define>

</ui:composition>

        </h:body>

    </f:view>
</html>